This repository was archived by the owner on May 14, 2025. It is now read-only.
Support Task Operations and shell commands for task logs#3393
Closed
cppwfs wants to merge 1 commit intospring-attic:masterfrom
Closed
Support Task Operations and shell commands for task logs#3393cppwfs wants to merge 1 commit intospring-attic:masterfrom
cppwfs wants to merge 1 commit intospring-attic:masterfrom
Conversation
resolves spring-attic#3390 This is to support Acceptance Tests for validating how CTR handles properties
Contributor
Author
|
Closing PR per request. |
| TaskExecutionResource taskExecutionStatus(long id); | ||
|
|
||
| /** | ||
| * Return the task execution log. The platform to from which to retrieve the log will be set to {@code default}. |
| return id; | ||
| } | ||
|
|
||
| private void waitForDBToBePopulated(long id) throws Exception { |
Contributor
There was a problem hiding this comment.
Not sure why do we need this method.
Contributor
There was a problem hiding this comment.
sorry, I get this now.
| public String getTaskExecutionLog(String taskName) throws Exception{ | ||
| long id = launchTaskExecutionForLog(taskName); | ||
| CommandResult cr = shell.executeCommand("task execution log --id " + id); | ||
| assertTrue(cr.toString().contains("Starting TimestampTaskApplication")); |
Contributor
There was a problem hiding this comment.
Checking TimestampTaskApplication here may not be correct as this method looks generic.
|
|
||
| @CliCommand(value = LOG, help = "Retrieve task execution log") | ||
| public String retrieveTaskExecutionLog(@CliOption(key = { "", "id" }, help = "the task execution id", mandatory = true) long id, | ||
| @CliOption(key = { "", "platform" }, help = "the platform of the task execution", mandatory = false) String platform) { |
Contributor
There was a problem hiding this comment.
We can remove key "" option for the platform key as we can only have one of the options with the default empty key.
Contributor
|
LGTM, fixing the above minor comments and merging the PR. |
Contributor
|
Rebased and merged as d324ebe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolves #3390
This is to support Acceptance Tests for validating how CTR handles properties